.other-profile-page {
  font-family: "Arial", sans-serif;
  max-width: 3600px;
  margin: 0 auto;
  background-color: #f8f9fa;
  min-height: 100vh;
}

.other-profile-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

.other-profile-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
}

/* 左侧边栏 */
.other-profile-sidebar {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  height: fit-content;
  position: sticky;
  top: 24px;
}

.user-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.user-avatar-container {
  position: relative;
  margin-bottom: 24px;
  transition: transform 0.3s ease;
}

.user-avatar-container:hover {
  transform: scale(1.05);
}

.user-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.user-avatar:hover {
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.user-name {
  font-size: 28px;
  font-weight: 600;
  color: #1a2a3a;
  margin-bottom: 8px;
  text-align: center;
}

.user-gender {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
  padding: 6px 16px;
  background: linear-gradient(to right, #f0f2f5, #e9ecef);
  border-radius: 20px;
  display: inline-block;
}

.user-bio {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.6;
  max-width: 280px;
  padding: 0 16px;
}

.user-stats {
  width: 100%;
  margin-bottom: 14px;
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.stat-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  width: 100%;
}

.stat-row:last-child {
  margin-bottom: 0;
}

.stat-row .stat-item {
  flex: 1;
  margin-bottom: 0;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-row .stat-item:last-child {
  margin-left: 8px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item:hover {
  background-color: rgba(59, 130, 246, 0.05);
  border-radius: 8px;
  padding: 12px 8px;
}

.stat-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.stat-label {
  color: #666;
  font-size: 12px;
  font-weight: 500;
}

.stat-value {
  color: #1a2a3a;
  font-weight: 600;
  font-size: 14px;
}

/* 关注按钮样式 */
.follow-actions {
  width: 100%;
  margin-top: 8px;
}

.follow-button {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 14px;
  margin: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(26, 42, 58, 0.2);
  font-size: 16px;
}

.follow-button.not-following {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
}

.follow-button.not-following:hover:not(:disabled) {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

.follow-button.following {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.follow-button.following:hover:not(:disabled) {
  transform: translateY(-2px);
}

.follow-button.following:hover:not(:disabled)::after {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.follow-button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 主要内容区域 */
.other-profile-content {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.other-profile-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: linear-gradient(to right, #f8f9fa, #ffffff);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tab-button {
  padding: 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: #666;
  transition: all 0.3s ease;
  position: relative;
}

.tab-button:hover {
  color: #1a2a3a;
  background-color: rgba(0, 0, 0, 0.02);
}

.tab-button.active {
  color: #1a2a3a;
}

.tab-button.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1a2a3a, #3b82f6);
}

.tab-content {
  padding: 24px;
}

.collection-count {
  color: #666;
  margin-bottom: 20px;
  font-size: 14px;
}

/* 下载记录表格 */
.downloads-table {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.downloads-table table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.downloads-table th,
.downloads-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.downloads-table th {
  font-weight: 600;
  color: #1a2a3a;
  background: linear-gradient(to right, #f8f9fa, #ffffff);
}

.downloads-table tr:hover {
  background-color: rgba(59, 130, 246, 0.02);
}

.download-title-cell {
  max-width: 300px;
}

.download-title-with-image {
  display: flex;
  align-items: center;
  gap: 12px;
}

.download-thumbnail {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 24px;
  gap: 8px;
}

.page-button {
  min-width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: white;
  cursor: pointer;
  padding: 0 12px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.page-button:hover {
  background-color: #f8f9fa;
  transform: translateY(-1px);
}

.page-button.active {
  background: linear-gradient(135deg, #1a2a3a, #2c3e50);
  color: white;
  border: none;
  box-shadow: 0 2px 8px rgba(26, 42, 58, 0.2);
}

/* 加载和错误状态 */
.loading-state {
  text-align: center;
  padding: 40px;
  color: #666;
  font-size: 14px;
}

.error-state {
  text-align: center;
  padding: 40px;
  color: #dc2626;
  font-size: 14px;
}

.retry-button {
  background: linear-gradient(135deg, #1a2a3a, #2c3e50);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  margin-top: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.retry-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(26, 42, 58, 0.2);
}

/* Modal样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content h2 {
  margin-bottom: 20px;
  color: #333;
  text-align: center;
}

/* 关注/粉丝统计样式 */
.follow-stat-item {
  cursor: pointer;
  transition: all 0.2s ease;
}

.follow-stat-item:hover {
  background-color: rgba(59, 130, 246, 0.1);
  border-radius: 8px;
  padding: 12px 8px;
  transform: translateX(2px);
}

.stat-value.clickable {
  color: #3b82f6;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: all 0.2s ease;
}

.follow-stat-item:hover .stat-value.clickable {
  text-decoration-color: #3b82f6;
}

/* 关注/粉丝列表模态框样式 */
.follow-modal {
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e1e5e9;
}

.modal-header h2 {
  margin: 0;
  color: #1a2a3a;
  font-size: 20px;
}

.close-button {
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close-button:hover {
  background-color: #f3f4f6;
  color: #1a2a3a;
}

.follow-modal-content {
  flex: 1;
  overflow-y: auto;
  min-height: 200px;
}

.follow-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.follow-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 12px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.follow-item:hover {
  background: #e9ecef;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.follow-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.follow-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.follow-user-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.follow-user-level {
  font-size: 11px;
  color: #3b82f6;
  font-weight: 500;
}

.follow-user-points {
  font-size: 11px;
  color: #10b981;
  font-weight: 500;
}

.follow-user-intro {
  font-size: 10px;
  color: #9ca3af;
  font-style: italic;
  margin-top: 2px;
  line-height: 1.3;
}

.follow-username {
  font-weight: 500;
  color: #1a2a3a;
  font-size: 14px;
}

.follow-user-id {
  font-size: 12px;
  color: #666;
}

.follow-action-button {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.follow-action-button:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.empty-follow-state {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.empty-follow-state p {
  margin: 0;
  font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .other-profile-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .other-profile-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .other-profile-container {
    padding: 16px;
  }

  .user-avatar {
    width: 120px;
    height: 120px;
  }

  .user-name {
    font-size: 24px;
  }

  .user-stats {
    padding: 20px;
  }

  .downloads-table th:nth-child(2),
  .downloads-table td:nth-child(2),
  .downloads-table th:nth-child(3),
  .downloads-table td:nth-child(3) {
    display: none;
  }

  .modal-content {
    padding: 20px;
    margin: 20px;
  }

  .follow-item {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .follow-user-info {
    flex-direction: column;
    gap: 8px;
  }

  .follow-action-button {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .stat-row {
    flex-direction: column;
  }

  .stat-row .stat-item:last-child {
    margin-left: 0;
    margin-top: 8px;
  }
}

/* 滚动条样式 */
.follow-modal-content::-webkit-scrollbar {
  width: 6px;
}

.follow-modal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.follow-modal-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.follow-modal-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
